$control-toolbar: (
  'item-margin': 0 rem(4px),
  'icon-margin': 0 rem(5px) 0 0,
  'icon-max-width': rem(16px),
  'icon-max-height': rem(16px),
  'icon-font-size': rem(20px),
  'toolbar-bottom-padding': getCssVar('spacing', 'base-tight'),
  'button-height': 32px,
);
$control-toolbar-embed: (
  'item-height': rem(21px),
  'item-line-height': rem(21px),
  'bg-color': transparent,
);

@include b('control-toolbar') {
  @include set-component-css-var('control-toolbar', $control-toolbar);

  display: flex;
  height: 100%;

  @include e('item-right') {
    margin-right: 0;
    background-color: transparent;

    @include m('button') {
      background-color: transparent;
      border: none;

      &::after {
        border: none;
      }
    }
    
    uni-button[plain] {
    
      background-color: transparent;
      border: none;
    }
  }
}

@include b('control-toolbar-right') {
  justify-content: flex-end;
}
